﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Masterpages/Site.Master" AutoEventWireup="true"
    CodeBehind="Default.old.aspx.cs" Inherits="cnFederal._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">

</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

<asp:ListView ID="listview1"  runat="server"  AutoGenerateColumns="False" AllowPaging="True" PageSize="2" ShowHeader="False" GridLines="None" PagerStyle-HorizontalAlign="Center">
     
        <ItemTemplate>
            <!-- NyhetsTabell -->
            <table class="newscontentsTable" border="0" cellpadding="5" cellspacing="0">
            <tr>
                <!-- Tittel -->
                <td class="newscontentsTitleCell">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td class="newscontentsTitleDate" align="left">
                            <asp:Label ID="Label6" runat="server" Text='Date'></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("Title") %>' CssClass="newscontentsTitle"></asp:Label>
                        </td>
                    </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <!-- Innhold -->
                <td align="right" valign="top">
                    <table border="0" cellpadding="0" cellspacing="0" style="width:100%;">
                    <tr>
                        <td valign="top" align="right" style="width:100%;">
                            <asp:ImageButton ID="bilde" runat="server" CssClass="newscontentsImage" ImageUrl='Image' PostBackUrl='' />
                            <asp:TextBox ID="TextBox1"  BorderWidth="0"  runat="server" Width="100%"  Text='<%# Eval("Header") %>' style="overflow:hidden; direction:rtl" TextMode="MultiLine" ReadOnly="True"></asp:TextBox>
                            
                          
                        </td>
                    </tr>
                    </table>
                </td>
                <!-- /Innhold -->
            </tr>
            <tr>
                <td align="left">
                    <asp:LinkButton ID="LinkButton1" runat="server" Text="ادامه‌ خبر" PostBackUrl=''></asp:LinkButton>
                </td>
            </tr>
            </table>
            <!-- /NyhetsTabell -->
        </ItemTemplate>
     
 
        </asp:ListView>

 <table bgcolor="White" width="100%"><tr><td>
    <asp:DataPager ID="DataPager1" runat="server" PagedControlID="listview1" 
            OnPreRender="pager_click" PageSize="2" >
            <Fields>
                <asp:NumericPagerField NextPageText="Neste" PreviousPageText="Forrige" />
            </Fields>
        </asp:DataPager>
    </td></tr></table>

<%--  <table border="0" cellpadding="0" cellspacing="0" style="width:100%; height:500px;">
<tr>
    <td valign="top" align="center">
        <asp:DataList ID="DataList1" runat="server" DataKeyField="ID"  Width="95%" >
            <ItemTemplate>
            <table border="0" cellpadding="0" cellspacing="0" style="width:100%;">
            <tr>
                <td align="right">
                    <table border="0" cellpadding="0" cellspacing="0" style="width:100%;">
                    <tr>
                        <td align="left" valign="top" style="width:150px;">
                            <asp:Label ID="Label5" runat="server" CssClass="newsDate" Text=''></asp:Label><!--Date -->
                        </td>
                        <td align="right">
                            <asp:Label ID="Label1" runat="server" CssClass="newsTitle" Text='<%# Eval("Title") %>'></asp:Label><br /><!--Title -->
                            <asp:Label ID="Label3" runat="server" CssClass="newsWriter" Text=''></asp:Label><!--autor -->
                            <asp:Label ID="Label7" runat="server" CssClass="newsWriter" Text="نووسه ر"></asp:Label>
                        </td>
                    </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top" align="right" style="width:100%;">
                    <br /><br />
                    <asp:Image ID="bilde2" runat="server" CssClass="newsImage" ImageUrl='' /><!--Image -->
                    <asp:Label ID="IngressLabel" runat="server" CssClass="newsIntroduction" Text='Ingress'></asp:Label><!--Ingress -->
                    <br /><br />
                    <asp:Label ID="Label6" CssClass="newsStory" runat="server" Text='MainContent'></asp:Label><!--Content -->
                </td>
            </tr>
            <tr>
                <td align="right">
                    <br /><hr />
                    <asp:HyperLink ID="HyperLink1" CssClass="newsSource" Text='' NavigateUrl='' runat="server"></asp:HyperLink> <!--Link -->
                    <asp:Label ID="Label4" runat="server" CssClass="newsSource" Text="لینک بو زانیاری زیاتر"></asp:Label>
                </td>
            </tr>
            </table>
            </ItemTemplate>
        </asp:DataList>
    </td>
</tr>
</table><br />
 <table bgcolor="White" width="1000"><tr><td>
    <asp:DataPager ID="DataPager1" runat="server" PagedControlID="DataList1" 
            OnPreRender="pager_click" PageSize="10" >
            <Fields>
                <asp:NumericPagerField NextPageText="Neste" PreviousPageText="Forrige" />
            </Fields>
        </asp:DataPager>
    </td></tr></table>--%>
    </asp:Content>
